<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>字体相关</title>
	<style type="text/css">
		#d1{
			/*字体大小*/
			font-size: 30px;
			
			/*字体加粗*/
			font-weight: bold;
			
			/*斜体*/

			font-style: italic;
			
			/*字体设置*/
			font-family:"黑体","微软雅黑";
		}
		
		h1{
			/*去掉加粗*/
			 font-weight: normal; 
		}
	
	</style>
</head>
<body>
	<div id="d1">div1</div>
	<div>div2</div>
	<h1>这是标题</h1>
</body>
</html>